﻿
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title> 
    <link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet"  type="text/css" />
    <link href="../../../Scripts/easyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../../Scripts/config.js"></script>
    <script type="text/javascript" src="../../../Comm/Gener.js"></script>
    <script src="DDLBar.js" type="text/javascript"></script>
    <script src="../../CCFlowEnum.js" type="text/javascript"></script>
    <script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>

    <script  type="text/javascript">

        $(function () {
            InitBar(DeliveryWay.BySQLAsSubThreadEmpsAndData);
            var nodeID = GetQueryString("FK_Node");
            var node = new Entity("BP.WF.Node", nodeID);
            document.getElementById("hisRunModel").innerHTML = getRunModelName(parseInt(node.RunModel));

            if (node.RunModel == RunModel.SubThread) {
                document.getElementById("RB_BySQLAsSubThreadEmpsAndData").disabled = false
            } else {
                document.getElementById("RB_BySQLAsSubThreadEmpsAndData").disabled = true
            }

            if (node.DeliveryWay == DeliveryWay.BySQLAsSubThreadEmpsAndData) {
                document.getElementById("RB_BySQLAsSubThreadEmpsAndData").value = node.DeliveryParas;
            }

        });

        function Save() {
            var nodeID = GetQueryString("FK_Node");
            var node = new Entity("BP.WF.Node", nodeID);
            node.DeliveryWay = DeliveryWay.BySQLAsSubThreadEmpsAndData;
            var DeliveryParas = document.getElementById("RB_BySQLAsSubThreadEmpsAndData").value;
            node.DeliveryParas = DeliveryParas;
            node.Update();
            alert("保存成功.");
        }
    </script>
</head>
<body >

<div id="bar"> </div>

<fieldset>
    <legend>请在文本框里输入SQL.</legend>
    <textarea id="RB_BySQLAsSubThreadEmpsAndData" rows="" cols="" style="width:95%;height:50px"></textarea>
</fieldset>

<fieldset>
    <legend>说明</legend>
    <ul>
           <li >此方法与分合流相关，只有当前节点是子线程才有意义，当前节点模式为：<label id="hisRunModel"></label>。</li>

   </ul>
</fieldset>

</body>
</html>
